<template>
    <div class="explore-container">
        <h1 class="expolre-title">探索更多目的地</h1>
        <div class="place-container">

            <a class="place-item" href="./pages/chengdu.html">
                
                <div class="chengdu"></div>
                <p class="place-text-overlay">成都</p>
                <p class="place-text-overlay-bottom">传统现代双辉映</p>
                
            </a>

            <a class="place-item" href="./pages/nanjing.html">
                <div class="nanjing"></div>
                <p class="place-text-overlay">南京</p>
                <p class="place-text-overlay-bottom">六朝金粉地之首</p>
            </a>

            <a class="place-item" href="./pages/xian.html">
                <div class="xian"></div>
                <p class="place-text-overlay">西安</p>
                <p class="place-text-overlay-bottom">中国传奇之都</p>
            </a>

            <a class="place-item" href="./pages/guangzhou.html">
                <div class="guangzhou"></div>
                <p class="place-text-overlay">广州</p>
                <p class="place-text-overlay-bottom">千年繁华，岭南风情</p>
            </a>

            <a class="place-item" href="./pages/dali.html">
                <div class="dali"></div>
                <p class="place-text-overlay">大理</p>
                <p class="place-text-overlay-bottom">浓郁文艺气息的古城</p>
            </a>

        </div>
    </div>
</template>

<script>
export default {
    name: 'Explore',
    data() {
        return {
            // Your data properties go here
        };
    },
    methods: {
        // Your methods go here
    },
    mounted() {
        // Code to run when the component is mounted
    },
    // Other component options go here
};
</script>

<style scoped>
.explore-container{
    height: 500px;
    margin: 50px 120px;
    /* border: black 1px solid; */
}

.expolre-title{
    margin-left: 10px;
}

.place-container{
    margin: 0 10px;
    height: 400px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    /* border: red 1px solid; */
}

.place-item{
    text-decoration: none;
    height: 370px;
    width: 200px;
    border-radius: 15px;
    overflow: hidden;
    /* border: yellow 1px solid; */
}

.place-text-overlay{
    position: relative;
    top: -42%;
    left: -22%;
    color: white;
    font-size: 30px;
    font-weight: bolder;
    letter-spacing: 5px;
    text-align: center;
}

.place-text-overlay-bottom{
    position: relative;
    top: -50%;
    left: -6%;
    color: white;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 5px;
    text-align: center;
}

.chengdu{
    background-image: url('../assets/img04.avif');
    background-size: cover;
    width: 100%;
    height: 100%;
}

.nanjing{
    background-image: url('../assets/img05.avif');
    background-size: cover;
    width: 100%;
    height: 100%;
}

.xian{
    background-image: url('../assets/img06.avif');
    background-size: cover;
    width: 100%;
    height: 100%;
}

.guangzhou{
    background-image: url('../assets/img07.jpg');
    background-size: cover;
    width: 100%;
    height: 100%;
}

.dali{
    background-image: url('../assets/img08.jpg');
    background-size: cover;
    width: 100%;
    height: 100%;
}
</style>